﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RaisingStudio.Data.Common.Configuration
{
    /// <summary>
    /// connecting setting.
    /// </summary>
    [Serializable]
    public class ConnectionSetting
    {
        private string connectionName = string.Empty;
        /// <summary>
        /// connecting setting name.
        /// </summary>
        public string ConnectionName
        {
            get
            {
                return this.connectionName;
            }
            set
            {
                this.connectionName = value;
            }
        }

        private DatabaseType databaseType = DatabaseType.OTHER;
        /// <summary>
        /// database type.
        /// </summary>
        public DatabaseType DatabaseType
        {
            get
            {
                return this.databaseType;
            }
            set
            {
                this.databaseType = value;
            }
        }

        private string providerName = string.Empty;
        /// <summary>
        /// The name of provider.
        /// </summary>
        public string ProviderName
        {
            get
            {
                return this.providerName;
            }
            set
            {
                this.providerName = value;
            }
        }


        private string connectionString = string.Empty;
        /// <summary>
        /// connection string.
        /// </summary>
        public string ConnectionString
        {
            get
            {
                return this.connectionString;
            }
            set
            {
                this.connectionString = value;
            }
        }
    }
}
